package com.probox.common.entity.service.order;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.common.entity.domain.order.OrderInvoice;
import com.probox.order.api.domain.OrderInvoiceVo;

/**
 * 开票信息Service接口
 *
 * @author hds
 * @date 2021-06-07
 */
public interface IOrderInvoiceService extends IService<OrderInvoice> {

    /**
     * 开票信息
     *
     * @param orderInvoice
     * @return
     */
    public boolean addInvoice(OrderInvoice orderInvoice);

    /**
     * 查询开票信息
     *
     * @param recordUid 开票信息ID
     * @return 开票信息
     */
    public OrderInvoice selectOrderInvoiceById(Long recordUid);


    /**
     * 查询开票信息列表
     *
     * @param orderInvoice 开票信息
     * @return 开票信息集合
     */
    public List<OrderInvoice> queryList(OrderInvoice orderInvoice);


    /**
     * 新增开票信息
     *
     * @param orderInvoice 开票信息
     * @return 结果
     */
    public boolean insertOrderInvoice(OrderInvoice orderInvoice);

    /**
     * 修改开票信息
     *
     * @param orderInvoice 开票信息
     * @return 结果
     */
    public boolean updateOrderInvoice(OrderInvoice orderInvoice);

    /**
     * 批量删除开票信息
     *
     * @param recordUids 需要删除的开票信息ID
     * @return 结果
     */
    public boolean deleteOrderInvoiceByIds(Long[] recordUids);

    /**
     * 根据ID获取开票信息
     *
     * @param orderUid
     * @return
     */
    public OrderInvoiceVo getByOrderUid(Long orderUid);
}
